home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6903 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: news.onramp.net!usenet
  2. From: dallas33@onramp.net
  3. Newsgroups: comp.lang.c
  4. Subject: Re: open & file locking
  5. Date: Fri, 16 Feb 1996 04:29:38 GMT
  6. Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA
  7. Message-ID: <4g11il$hd9@news.onramp.net>
  8. References: <4frlk1$q13@news.onramp.net> <danpop.824297337@rscernix>
  9. NNTP-Posting-Host: central08.onramp.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Dan, 
  13.  
  14. I have received the exact replies I'm looking for; A template which
  15. which includes a header file and provides for file-locking management.
  16. My hats off to Mark Klenke for supplying more than I had hoped for.
  17.  
  18. Perhaps the C language, in general, does not provide for file locking
  19. mechanisms, but anyone who has ever had to write an application where
  20. file access is necessary for multiple concurrent users, would
  21. understand the necessity for file locking.  Individuals who have been
  22. fortunate enough to have their requirements for single-user usage, are
  23. blessed in that their applications do not have to carry the burden of
  24. these complexities.  I enjoy taking on these challenges and have no
  25. shame in asking for help; in this respect, Mark is my savior for the
  26. day.
  27.  
  28. Nonetheless, I do appreciate your responding.
  29.  
  30. Sincerely, 
  31.  
  32. Darryl
  33.  
  34. danpop@mail.cern.ch (Dan Pop) wrote:
  35.  
  36. >In <4frlk1$q13@news.onramp.net> dallas33@onramp.net writes:
  37.  
  38. >>I would like to construct a 'C' program  file wrapper which will
  39. >>facilitate file locking.  The primary platforms of deplayment will  be
  40. >>on the SUN Solaris and secondary on a Pyramid Nile.
  41.  
  42. >The C language provides absolutely no support for file locking.
  43. >For Sun and Pyramid solutions you should have asked in newsgroups
  44. >dedicated to those platforms.
  45.  
  46. >>From the texts I have at my disposal, there are many references to the
  47. >>usage of the 'open' and 'fnctl' calls and file handling modes,
  48. >>however, I only seem to be hacking around, and with little success.
  49.  
  50. >I dunno what are texts at your disposal, but the man page for lockf()
  51. >AND "Advanced Programming in the UNIX Environment" by W. R. Stevens
  52. >(the "Advanced I/O" chapter) are all you need.
  53.  
  54. >Dan
  55. >--
  56. >Dan Pop
  57. >CERN, CN Division
  58. >Email: danpop@mail.cern.ch 
  59. >Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  60.  
  61.  
  62.